package com.common.util;

/**
 * @describe: 数据库分页交互Model
 */
public class PageModel<T> {

    /**数据长度*/
    private long count;
    /**数据*/
    private T data;
    /**默认页码*/
    private int page = 1;
    /**默认也行数*/
    private int row = 20;

    public long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public int getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public int getRow() {
        return row;
    }

    public void setRow(Integer row) {
        this.row = row;
    }
}
